<%@ page language="java" pageEncoding="UTF-8"%>
<div ng-controller="ModuleShowController">
	<div class="panel panel-default">
		<div class="panel-heading">
			类型
		</div>
		<div class="panel-body">
			<div style="float: left;">
				<div class="form-group">
					<label>
						用户类型
					</label>
					<div>
						<select class="form-control" style="width: 150px;" ng-model="moduleTypeAndRoleType.role" ng-change="updateView()">
							<option ng-repeat="roleType in roleTypes" value="{{roleType.id}}"> {{roleType.name}}
							</option>
						</select>
					</div>
				</div>
			</div>
			<div style="float: left;padding-left: 50px;">
				<div class="form-group">
					<label>
						模块类型
					</label>
					<div>
						<select class="form-control" style="width: 150px;" ng-model="moduleTypeAndRoleType.module" ng-change="updateView()">
							<option ng-repeat="moduleType in moduleTypes" value="{{moduleType.id}}">
								{{moduleType.name}}
							</option>
						</select>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading">
			权限
		</div>
		<div class="panel-body">
			<form action="">
				<span ng-repeat="module in modules" style="padding: 10px 10px 10px 10px;float: left;">
					<label class="checkbox">
						<input name="modules" type="checkbox" value="{{module.id}}" ng-model="module.select" ng-checked="module.select" />{{module.name}}
					</label>
				</span>
			</form>
		</div>
	</div>
	<div>
		<button type="button" class="btn btn-success btn-sm" ng-click="update()"><i class="glyphicon glyphicon-upload"></i> 更新</button>
	</div>
</div>